package com.mpyy.service.purchase;

import com.mpyy.dao.purchase.SupplierMapperDaoInter;
import com.mpyy.pojo.PurchaseStock;
import com.mpyy.pojo.PurchaseStockDesc;
import com.mpyy.pojo.SupplierInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "supplierServiceImpl")
public class SupplierServiceImpl implements SupplierServiceInter {
    //依赖持久层
    @Autowired
    @Qualifier(value = "supplierMapperDaoInter")
    private SupplierMapperDaoInter supplierMapperDaoInter;


    @Override
    public List<SupplierInfo> saveSupplierInfo() {
        return supplierMapperDaoInter.saveSupplierInfo();
    }

    @Override
    public List<PurchaseStock> savePurchaseStock(PurchaseStock purchaseStock) {
        return supplierMapperDaoInter.savePurchaseStock(purchaseStock);
    }

    @Override
    public List<PurchaseStockDesc> savePurchaseStockDesc(PurchaseStockDesc purchaseStockDesc) {
        return supplierMapperDaoInter.savePurchaseStockDesc(purchaseStockDesc);
    }
}
